Synchronising C / C + + and POWER Anonymous

ثبت نشده
چکیده

Shared memory concurrency relies on synchronisation primitives: compare-and-swap, load-reserve/store-conditional (aka LL/SC), language-level mutexes, and so on. In a sequentially consistent setting , or even in the TSO setting of x86 and Sparc, these have well-understood semantics. But in the very relaxed settings of Power, ARM, or C/C++, it remains surprisingly unclear exactly what the programmer can depend on. This paper studies relaxed-memory synchronisation. On the hardware side, we give a clear semantic characterisation of the load-reserve/store-conditional primitives as provided by Power multiprocessors, for the first time since they were introduced 20 years ago; we cover their interaction with relaxed loads, stores, barriers, and dependencies. Our model, while not officially sanctioned by the vendor, is validated by extensive testing, comparing actual implementation behaviour against an oracle generated from the model, and by detailed discussion with a senior IBM Power designer/architect. We believe the ARM semantics to be similar. On the software side, we prove sound a proposed compilation scheme of the C/C++ synchronisation constructs to Power, including C/C++ spinlock mutexes, fences, and read-modify-write operations , together with the simpler atomic operations for which sound-ness is already known; this is a first step in verifying concurrent algorithms that use load-reserve/store-conditional w.r.t. a realistic semantics. We also build confidence in the C/C++ model in its own terms, fixing some omissions and contributing to the C standards committee adoption of the C++11 concurrency model.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Numerical Study for Optimizing Parameters of High-Intensity Focused Ultrasound-Induced Thermal Field during Liver Tumor Ablation: HIFU Simulator

Introduction High intensity focused ultrasound (HIFU) is considered a noninvasive and effective technique for tumor ablation. Frequency and acoustic power are the most effective parameters for temperature distribution and the extent of tissue damage. The aim of this study was to optimize the operating transducer parameters such as frequency and input power in order to acquire suitable temperatu...

متن کامل

Adaptive Observer-Based Decentralized Scheme for Robust Nonlinear Power Flow Control Using HPFC

This paper investigates the robust decentralized nonlinear control of power flow in a power system using a new configuration of UPFC. This structure comprises two shunt converters and one series capacitor called as hybrid power flow controller (HPFC). A controller is designed via control Lyapunov function (CLF) and adaptive observer to surmount the problems of stability such as tracking desired...

متن کامل

Design of Gate-Driven Quasi Floating Bulk OTA-Based Gm–C Filter for PLL Applications

The advancement in the integrated circuit design has developed the demand for low voltage portable analog devices in the market. This demand has increased the requirement of the low-power RF transceiver. A low-power phase lock loop (PLL) is always desirable to fulfill the need for a low power RF transceiver. This paper deals with the designing of the low power transconductance- capacitance (Gm-...

متن کامل

Nonlinear Analysis of a Power Amplifier inc C Band and Load Pull Technique Calculation USING VOLTERRA SERIES

In recent years, nonlinear circuit analysis techniques have been extensively investigated. One of the most important reasons is the application development of solid-state devices at microwave frequencies. Different methods have been used to analysis large signal behavior of these devices. In this paper load-pull curves (one of design requirement) are obtained using Volterra series. The main adv...

متن کامل

On the Regular Power Graph on the Conjugacy Classes of Finite Groups

emph{The (undirected) power graph on the conjugacy classes} $mathcal{P_C}(G)$ of a group $G$ is a simple graph in which the vertices are the conjugacy classes of $G$ and two distinct vertices $C$ and $C'$ are adjacent in $mathcal{P_C}(G)$ if one is a subset of a power of the other. In this paper, we describe groups whose associated graphs are $k$-regular for $k=5,6$.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011